Learn R Programming

scater (version 1.0.4)

pData<-,SCESet,AnnotatedDataFrame-method: Replaces phenoData in an SCESet object

Description

SCESet objects contain phenotype information (inherited from the ExpressionSet class). This function conveniently replaces the phenotype data with the value supplied, which must be an AnnotatedDataFrame.

Usage

"pData"(object) <- value
"pData"(object) <- value

Arguments

object
An SCESet object.
value
an AnnotatedDataFrame with updated phenoData to replace existing

Value

A matrix of expression count data, where rows correspond to features (e.g. genes) and columns correspond to cells.

Examples

Run this code
## Not run: 
# data("sc_example_counts")
# data("sc_example_cell_info")
# pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
# example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)
# pData(example_sceset)
# ## End(Not run)

Run the code above in your browser using DataLab